package com.guonl.open.api.request.waybill;

import com.guonl.open.api.validation.AtLeastOneNotEmpty;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotBlank;

@AtLeastOneNotEmpty(fields = {"driverPhone", "driverIdCardNumber"}, message = "司机手机号和司机身份证号,不能同时为空")
@Data
public class ApiDriverInfoRequest {

    @ApiModelProperty(value = "司机名称")
    private String driverName;

    @ApiModelProperty(value = "司机手机号")
//    @NotBlank(message = "司机手机号不能为空")
    private String driverPhone;

    @ApiModelProperty(value = "司机身份证号")
//    @NotBlank(message = "司机身份证号不能为空")
    private String driverIdCardNumber;

    @ApiModelProperty(value = "车牌号")
    @NotBlank(message = "车牌号不能为空")
    private String vehicleLicenseNumber;

    @ApiModelProperty(value = "代收人身份证号")
    private String payeeAgentIdCardNumber;

    @ApiModelProperty(value = "代收人手机号")
    private String payeeAgentPhone;


}
